/**
  ******************************************************************************
  * @file           : AFE.h
  * @brief          : Header for AFE.c file.
  ******************************************************************************
  * @attention
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __CELL_BALABCE_H__
#define __CELL_BALABCE_H__

#include "EMB.h"
#include "main.h"


#define EMB_CONTROL_PERIOD		5000		//must < 7000


typedef enum
{
    CHARGE,
    DISCHARGE,
	STOP,
}EMB_STATE_t;


extern EMB_t user_emb;

void EMBControl(CELL_NUM_t cell_num, EMB_STATE_t ch_disch);

void EMBControlTask(void);
void EMBFaultHandleTask(void);
void EMBControl1msTickHandle(void);





#endif /* __EMB_H__ */